<?php $this->load->view('view_pageheader'); ?>
    <label class="content_linkBack"><?php echo anchor('con_users', '< Back') ?></label>
    <label class="content_this">| NEW PERSON</label>
    
<?php echo form_open('con_users/Addperson'); ?>
        <table border="0" style="margin: auto;">
            <tr>
                <td><label class="textRight">NAME :</label></td>
                <td><input type="text" name="fname" size="20" />*</td>
            </tr>
            <tr>
                <td><label class="textRight">SURNAME :</label></td>
                <td><input type="text" name="sname" size="20" />*</td>
            </tr>
            <tr>
                <td><label class="textRight">USERNAME :</label></td>
                <td><input type="text" name="username" size="20" />*</td>
            </tr>
            <tr>
                <td><label class="textRight">PASSWORD :</label></td>
                <td><input type="text" name="password" size="20" />*</td>
            </tr>
            <tr>
                <td><label class="textRight">Verify-PASSWORD :</label></td>
                <td><input type="text" name="vpassword" size="20" />*</td>
            </tr>
            <tr>
                <td><label class="textRight">EMAIL :</label></td>
                <td><input type="text" name="email" size="20" />*</td>
            </tr>
            <tr>
                <td><label class="textRight">Group :</label></td>
                <td></td>
            </tr>
            <?php foreach ( $qry_group as $row ) { ?>
            <tr>
                <td></td>
                <td>
                    <?php
                    echo '<input type="checkbox" name="gperson_id[]" id="gperson_id" value="' . $row->gperson_id . '" />' . $row->gperson_name . ''; 
                    ?>
                </td>
            </tr>
            <?php } ?>
            <?php foreach ( $qry_personid as $rows ) { ?>
            <tr>
                <td>
                    <?php
                    echo '<input type="hidden" name="personidmax" id="personidmax" value="' . $rows->person_id . '" />';
                    ?>
                </td>
            </tr>
            <?php } ?>
            <tr>
                <td><label class="textRight">Active :</label></td>
                <td>
                <label>
                    <select name="active" id="active">
                        <option value="1">Yes</option>
                        <option value="0">No</option>
                    </select>
                </label>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: center;">
                    <input type="submit" value="Submit" />&nbsp;<input type="reset" value="Cancel" />
                </td>
            </tr>
        </table>
<?php echo form_close(); ?>
    
<?php $this->load->view('view_pagefooter'); ?>
